#include <stdio.h>
#include <string.h>

int main() {
	char a[100];
	gets(a);
	int i = 0;
	while (a[i] != '\0') {
		i++;
	}
	char b[100];
	int j = 0;
	for (j = 0; j < i - 1 ; j++) {
		b[j] = a[i - 1];
		i--;
	}
	b[j] = '\0';
	puts(b);
	return 0;
}